package org.thoughtworks.selenium.flex.codec;

import java.util.HashMap;
import java.util.Map;

public class ScrollDetailFactory {

    private static final Map<String, ScrollDetail> SCROLL_DETAIL_MAP = new HashMap<String, ScrollDetail>();

    static {
        for (ScrollDetail scrollDetail : ScrollDetail.values())
            SCROLL_DETAIL_MAP.put(scrollDetail.value(), scrollDetail);
    }

    public static ScrollDetail get(String scrollDetail) {
        return SCROLL_DETAIL_MAP.get(scrollDetail);
    }
}